﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dragon.Library.Framework.Bo
{
    public partial class BaseBo<T, TBean, TKey>
    {
        public IList ExecProcedure(string procedureName, Dictionary<string, object> parameter)
        {
            //if (!Dao.IsOpen)
            //    Dao.ConnectionOpen();
            InitializationSession();
            InitializationDao();
            var returnValue = Dao.ExecProcedure(procedureName, parameter);
            DisposeDao();
            DisposeSession();
            //if (Dao.IsOpen && !Dao.IsTran)
            //    Dao.ConnectionClose();
            return returnValue;
        }
    }
}
